package youth;

public class LiteraryYouth extends Human {
    private String masterpiece;
    private String dream;

    public LiteraryYouth(String name, int age, String gender, String school, String masterpiece, String dream) {
        super(name, age, gender, school);
        this.masterpiece = masterpiece;
        this.dream = dream;
    }

    @Override
    public String toString() {
        return "我叫" + getName() + "，今年" + getAge() + "岁，性别" + getGender() + "，毕业于" + getSchool() + "，我的代表作是《" + masterpiece + "》，我的梦想是" + dream + "。";
    }
}